#!/bin/sh
cd ${0%/*} || exit 1    # Run from this directory

# Parse arguments for library compilation
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments

# Build if Zoltan is enabled
case $ZOLTAN_TYPE in
none)
    ;;
*)
    . $WM_PROJECT_DIR/wmake/scripts/AllwmakeMpiLib
    . $($WM_PROJECT_DIR/bin/foamEtcFile config.sh/zoltan)
    echo "    using ZOLTAN_ARCH_PATH=$ZOLTAN_ARCH_PATH"
    wmakeMpiLib Zoltan-$ZOLTAN_VERSION zoltan
    ;;
esac

#------------------------------------------------------------------------------
